package com.xunua.mymycsjsdktest;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;

import com.blankj.utilcode.util.ScreenUtils;

public class FeedAdVideoActivity extends AppCompatActivity {
    private FrameLayout frameLayout;
    private View feedAdVideoView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_feed_ad_video);
        MyApplication application = (MyApplication) getApplication();
        feedAdVideoView = application.getFeedAdVideoView();
        application.setFeedAdVideoView(null);
        frameLayout=findViewById(R.id.fragment_feedad_video);
        ViewGroup.LayoutParams layoutParams = frameLayout.getLayoutParams();
        layoutParams.height=ScreenUtils.getAppScreenHeight();
        layoutParams.width=ScreenUtils.getAppScreenWidth();
        feedAdVideoView.setLayoutParams(layoutParams);
        frameLayout.removeAllViews();
        frameLayout.addView(feedAdVideoView);
    }

    @Override
    protected void onResume() {
        super.onResume();
    }
}